<template>
  <div class="item">
    <div class="msg">
      <div class="top">
        {{ item.title }}
      </div>
      <div class="bottom">
        <span class="time"> {{ item.updated_at | relativeTime }}</span>
        <span class="yan">
          <i class="iconfont iconicon_liulanliang"></i>
          {{ item.read }}</span
        >
        <span class="zan">
          <i class="iconfont iconicon_dianzanliang"></i> {{ item.star }}</span
        >
      </div>
    </div>
    <div class="imge">
      <img :src="baseURL + item.cover" alt="" />
    </div>
  </div>
</template>
<script>
export default {
  name: '',
  props: ['item'],
  data () {
    return {
      // 基地址
      baseURL: process.env.VUE_APP_BaseURL
    }
  },
  methods: {},
  components: {}
}
</script>
<style lang="less" scoped>
.item {
  display: flex;
  margin-bottom: 10px;

  .msg {
    padding-right: 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .top {
      font-size: 16px;
      font-weight: 700;
      text-align: left;
      color: #181a39;
      line-height: 23px;
    }
    .bottom {
      display: flex;
      justify-content: center;
      font-size: 12px;
      font-weight: 400;
      text-align: left;
      color: #b4b4bd;
      line-height: 17px;
      .time {
        flex: 1;
      }
      .yan,
      .zan {
        margin: 0 10px;
      }
    }
  }
  .imge {
    img {
      width: 113px;
      height: 75px;
      opacity: 1;
    }
  }
}
</style>
